home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Archiving question < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  684 b   |  [TEXT/ttxt]

  1. Subject:     Archiving question
  2. Sent:        3/16/96 8:26 PM
  3. Received:    3/18/96 7:01 AM
  4. From:        Arni McKinley, motion@nbn.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Let's suppose that I keep a pointer to an object, foo, in a class that I am
  9. archiving:
  10.  
  11. class FW_CLASS_ATTR CoolStuff
  12. {
  13.    MyClass *foo;
  14.         etc
  15. }
  16.  
  17. When I write this CoolStuff out to the archive, it looks something like this:
  18.  
  19. void CoolStuff::Flatten( FW_CWritableStream& archive )
  20. {
  21.    FW_WRITE_DYNAMIC_OBJECT( archive, foo, MyClass );
  22. }
  23.  
  24.  
  25. What happens if foo is NULL?  Will FW_READ_DYNAMIC_OBJECT recognize it as such?
  26.  
  27. Arni
  28.  
  29.